home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / dos / math / lp100210 / budgetss.lp < prev    next >
Text File  |  1989-01-11  |  7KB  |  256 lines

  1.  
  2. * -      This is an example linear program supplied as a demonstration
  3. *        for LP100.  It generates a solution that will allow optimal
  4. *        budgets such as sales, production, inventory, purchases & cash
  5. *        to be easily drawn as well as a projected balance sheet and an
  6. *        income statement to be created, all optimally the first time.
  7.  
  8. * --     The preliminary accounting & requirement data are not supplied
  9. *        here nor are the finalized budgets.
  10.  
  11. * ---    This file was entered using a 1-2-3 spreadsheet.  Though it was
  12. *        not developed with spreadsheet data, rather entered manually,
  13. *        it could have easily used data from individual worksheet cells
  14. *        or consolidation cells (VP-Planner, 1-2-3 v3.0) that would
  15. *        automatically reflect any changes in data or requirements
  16. *        into a fully-functional matrix generating model.
  17.  
  18. TITLE:   Multi-period Multi-plant Model
  19. LISTING: NO
  20. MAP:     NO
  21. TABLEAU: NO
  22. ANALYSIS:YES
  23.  
  24. VAR:           44
  25. LTE:           14
  26. GTE:           16
  27. EQU:            6
  28.  
  29. FUNCTION:MAX:
  30.     1.58 Xap1          2.2 Xbp1
  31.        0 Yap1            0 Ybp1
  32.        0 Zwp1            0 Zup1
  33.     -.58 Taps1        -.02 Tasp1
  34.     -.68 Tbps1        -.12 Tbsp1
  35.      1.6 Xas1         2.02 Xbs1
  36.        0 Yas1            0 Ybs1
  37.        0 Zws1            0 Zus1
  38.     -.11 Iap1         -.13 Ibp1
  39.     -.11 Ias1         -.13 Ibs1
  40.     1.58 Xap2          2.2 Xbp2
  41.        0 Yap2            0 Ybp2
  42.        0 Zwp2            0 Zup2
  43.     -.58 Taps2        -.02 Tasp2
  44.     -.68 Tbps2        -.12 Tbsp2
  45.      1.6 Xas2         2.02 Xbs2
  46.        0 Yas2            0 Ybs2
  47.        0 Zws2            0 Zus2
  48.        0 V1             -1 Re1           .03 M1              0 Noe1
  49.        0 V2             -1 Re2           .03 M2              0 Noe2
  50.  
  51. pSALa1          1 Xap1
  52. <=         220000
  53.  
  54. pSALb1          1 Xbp1
  55. <=         300000
  56.  
  57. pINVa1         -1 Xap1            1 Yap1
  58.                 1 Taps1          -1 Tasp1
  59.                -1 Iap1
  60. >=          -5000
  61.  
  62. pINVb1         -1 Xbp1            1 Ybp1
  63.                 1 Tbps1          -1 Tbsp1
  64.                -1 Ibp1
  65. >=          10000
  66.  
  67. pPCAP1         .5 Yap1           .6 Ybp1
  68. <=         300000
  69.  
  70. pRAWw1         -3 Yap1            1 Zwp1
  71. >=          10000
  72.  
  73. pRAWu1         -2 Ybp1            1 Zup1
  74. >=         -10000
  75.  
  76. sSALa1          1 Xas1
  77. <=         180000
  78.  
  79. sSALb1          1 Xbs1
  80. <=         150000
  81.  
  82. sINVa1         -1 Taps1           1 Tasp1
  83.                -1 Xas1            1 Yas1
  84.                -1 Ias1
  85. >=          -2000
  86.  
  87. sINVb1         -1 Tbps1           1 Tbsp1
  88.                -1 Xbs1            1 Ybs1
  89.                -1 Ibs1
  90. >=          -1500
  91.  
  92. sPCAP1         .6 Yas1           .7 Ybs1
  93. <=         220000
  94.  
  95. sRAWw1         -3 Yas1            1 Zws1
  96. >=          -2000
  97.  
  98. sRAWu1         -2 Ybs1            1 Zus1
  99. >=          -3000
  100.  
  101. pSALa2          1 Xap2
  102. <=         250000
  103.  
  104. pSALb2          1 Xbp2
  105. <=         300000
  106.  
  107. pINVa2         -1 Xap2            1 Yap2
  108.                 1 Taps2          -1 Tasp2
  109.                 1 Iap1
  110. >=              0
  111.  
  112. pINVb2         -1 Xbp2            1 Ybp2
  113.                 1 Tbps2          -1 Tbsp2
  114.                 1 Ibp1
  115. >=              0
  116.  
  117. pPCAP2         .5 Yap2           .6 Ybp2
  118. <=         280000
  119.  
  120. pRAWw2         -3 Yap2            1 Zwp2
  121. >=              0
  122.  
  123. pRAWu2         -2 Ybp2            1 Zup2
  124. >=              0
  125.  
  126. sSALa2          1 Xas2
  127. <=         150000
  128.  
  129. sSALb2          1 Xbs2
  130. <=         200000
  131.  
  132. sINVa2          1 Ias1
  133.                -1 Taps2           1 Tasp2
  134.                -1 Xas2            1 Yas2
  135. >=              0
  136.  
  137. sINVb2          1 Ibs1
  138.                -1 Tbps2           1 Tbsp2
  139.                -1 Xbs2            1 Ybs2
  140. >=              0
  141.  
  142. sPCAP2         .6 Yas2           .7 Ybs2
  143. <=         230000
  144.  
  145. sRAWw2         -3 Yas2            1 Zws2
  146. >=              0
  147.  
  148. sRAWu2         -2 Ybs2            1 Zus2
  149. >=              0
  150.  
  151. CASH1        3.15 Xap1         4.28 Xbp1
  152.              -1.4 Yap1        -1.68 Ybp1
  153.              -.14 Zwp1         -.22 Zup1
  154.               -.3 Taps1         -.3 Tasp1
  155.               -.4 Tbps1         -.4 Tbsp1
  156.              3.42 Xas1         4.37 Xbs1
  157.             -1.68 Yas1        -1.96 Ybs1
  158.              -.14 Zws1         -.22 Zus1
  159.                 1 V1             -1 M1
  160. =         1451000
  161.  
  162. DEBTL1          1 V1
  163. <=          50000
  164.  
  165. INTRS1       -.05 V1              1 Re1
  166. =            5000
  167.  
  168. PROF1        1.58 Xap1          2.2 Xbp1
  169.              -.58 Taps1        -.02 Tasp1
  170.              -.68 Tbps1        -.12 Tbsp1
  171.               1.6 Xas1         2.02 Xbs1
  172.                -1 Re1           .03 M1
  173.                -2 Noe1
  174. =         1465000
  175.  
  176. CASH2         .28 Xap1          .13 Xbp1
  177.              -.01 Zwp1        -.015 Zup1
  178.               .31 Xas1          .14 Xbs1
  179.              -.01 Zws1        -.015 Zus1
  180.              3.15 Xap2         4.28 Xbp2
  181.              -1.4 Yap2        -1.68 Ybp2
  182.              -.14 Zwp2         -.22 Zup2
  183.               -.3 Taps2         -.3 Tasp2
  184.               -.4 Tbps2         -.4 Tbsp2
  185.              3.42 Xas2         4.37 Xbs2
  186.             -1.68 Yas2        -1.96 Ybs2
  187.              -.14 Zws2         -.22 Zus2
  188.              -.25 V1           1.03 M1
  189.                -1 Noe1            1 V2
  190.                -1 M2
  191. =         1229500
  192.  
  193. DEBTL2         .8 V1              1 V2
  194. <=         100000
  195.  
  196. INTRS2       -.04 V1           -.05 V2
  197.                 1 Re2
  198. =            4500
  199.  
  200. PROF2        1.58 Xap2          2.2 Xbp2
  201.              -.58 Taps2        -.02 Tasp2
  202.              -.68 Tbps2        -.12 Tbsp2
  203.               1.6 Xas2         2.02 Xbs2
  204.                -1 Re2           .03 M2
  205.                -2 Noe2
  206. =         1465000
  207.  
  208. END:
  209.  
  210.  
  211. >>>>>>>>>>>> DEFINITIONS <<<<<<<<<<<<
  212.  
  213.  Where:  product = a,b
  214.          plant   = p,s  (p=parent s=subsidiary)
  215.          period  = 1,2
  216.          material= w,u
  217.  
  218. <<< Variable >>>
  219.  
  220. Xijk     Sales of product(i) from plant(j) in period(k)
  221.  
  222. Yijk     Production of product(i) from plant(j) in period(k)
  223.  
  224. Zijk     Raw material purchases of material(i) for plant(j) in period(k)
  225.  
  226. Iijk     Inventory of product(i) in plant(j) at end of period(k)
  227.  
  228. Tijkl    Transport of product(i) to plant(j) from plant(k) in period(l)
  229.  
  230. Vi       New loans taken for period(i)
  231.  
  232. Rei      Interest expense for period(i)
  233.  
  234. Mi       Excess cash available for outside investment in period(i)
  235.  
  236. Noei     Net operating earnings (also taxes (50% tax)) in period(i)
  237.  
  238. <<< Constraint >>>
  239.  
  240. iSALjk   Demand of plant(i)'s product(j) in period(k)
  241.  
  242. iINVjk   Inventory of plant(i)'s product(j) at the end of period(k)
  243.  
  244. iPCAPj   Production capacity of plant(i) during period(k)
  245.  
  246. iRAWjk   Requirement for plant(i)'s raw material(j) during period(k)
  247.  
  248. CASHi    Requirement for cash during period(i)
  249.  
  250. DEBTLi   Limit of new loans for period(i)
  251.  
  252. INTRSi   Requirement for interest repayment for period(i)
  253.  
  254. PROFi    Requirement for profit to cover fixed overhead for period(i)
  255.  
  256.